package com.up.redis.key;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;

/**
 * @author: baiMl
 * @title: RedisEnvironment
 * @projectName: 海联技术中台V2.0
 * @depart 软件事业部
 * @description:
 * @date: 2023/1/18 10:03 (星期三)
 */
public class RedisEnvironment implements EnvironmentAware {

    private static Environment environment;

    @Override
    public void setEnvironment(Environment environment) {
        RedisEnvironment.environment = environment;
    }

    public static Environment getEnvironment() {
        return environment;
    }
}
